x86/time: Alter tsc_set_info() to return an error value
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 20 Nov 2018 11:37:19 +0000 (11:37 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Dec 2018 17:13:51 +0000 (17:13 +0000)
commit0cef19b9c8ba5c38f29aa8b72864e0829e21c0e6
treedab49f3f47e154722d6d16f4e40e6728205a24d3
parent3b5e03b9396b54b938c76972a0d804f22cc4eb64
x86/time: Alter tsc_set_info() to return an error value

Currently, tsc_set_info() performs no parameter checking, and an invalid
tsc_mode goes largely unnoticed.  Fix it to reject invalid tsc_modes with
-EINVAL, and update the callers to check the return value.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/arch/x86/time.c
xen/include/asm-x86/time.h